package com.jeasonzhao.commons.inplacecache;

import java.util.Iterator;
public interface ICache<K,V>
{
    int getCacheSize();
    long getCacheTimeout();
    void put(K key,V object);
    void put(K key,V object,long timeout);
    V get(K key);
    Iterator<V> iterator();
    int prune();
    boolean isFull();
    void remove(K key);
    void clear();
    int size();
    boolean isEmpty();
}
